<div>
    <label>Login</label>
    <input #username/>
    <input #password/>
    <button (click)="login(username.value, password.value)">
        Login
    </button>
</div>